#include"util.hpp"
#include"data.hpp"
#include"cloud.hpp"
#define BACKUP_FILE "./backup.dat"
#define BACKUP_DIR  "./backup/"
int main()
{
	//cloud::FileUtil fu("./");
	//std::vector<std::string>array;
	//fu.ScanDirectory(&array);
	//cloud::DataManager data(BACKUP_FILE);
	//for (auto& a : array)
	//{
	//
	//	std::cout << a << std::endl;
	//	data.Insert(a, "abcdefg");
	//
	//}
	cloud::DataManager data(BACKUP_FILE);
	//std::string str;
	//data.GetOneByKey(".\\cloud.cpp", &str);
	//std::cout << str << std::endl;
	cloud::Backup backup(BACKUP_DIR,BACKUP_FILE);
	backup.Runmodule();
	return 0;



}